package edu.sctu.practice.class02.zhaozhongjun.test18;

/**
 * Created by zhao on 2015/11/5.
 */
public class Auto {
    int tires;
    String color;
     int load;
     int speed;
    public Auto(int tires,String color,int load,int speed){
        this.tires = tires;
        this.color = color;
        this.load = load;
        this.speed = speed;
    }
    public void upSpeed(){

        System.out.println("加速了");
    }
     public void downSpeed(){

         System.out.println("减速了");
     }
    public void stop(){

        System.out.println("停车了");
    }

  public void getInfo(){

      System.out.println("轮胎数："+tires+"\n颜色："+color+ "\n车身重量："+load+"\n速度"+speed );
}
}